#ifndef FUNCTIONS_H
#define FUNCTIONS_H

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <malloc.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <math.h>
#include <string.h>

#include <ppu-lv2.h>

#include <lv2/process.h>
#include <sys/thread.h>
#include <sysmodule/sysmodule.h>
#include <sys/event_queue.h>
#include <sysutil/sysutil.h>

#include <sys/stat.h>
#include <sysutil/msg.h>
#include <io/pad.h>

#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include "SDL/SDL_draw.h"

extern SDL_Surface *screen;
extern TTF_Font *font;
extern SDL_Surface *text_surface;
extern SDL_Color fcolor;
static char hdd_folder_installed[64] = "RNA000001"; // folder for program

void InitSDL();
void free_surf(SDL_Surface* surf);
void apply_surface(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip);
void fontPrintf(int x, int y, const char *format, ...);
padData getPadData(int i);
void Debug(const char *format, ... );
#endif

